Search


In C++ or C#, when we’re talking about objec...

  • Share this:


In C++ or C#, when we’re talking about objects, we're referring to instances of classes or structs. Objects have different properties and methods, depending on which templates (that is, classes) they are instantiated from. That's not the case with JavaScript objects. In JavaScript, objects are just collections of name/value pairs - think of a JavaScript object as a dictionary with string keys. -->簡而言之, JavaScript中的Object類似一個Hash or Dictionary


Tags:

About author
not provided
軟體開發相關技術、新鮮事、知識分享
View all posts